package com.bjsxt.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author:liao
 * @Description:TODO
 * @date:2020/12/17
 */
@ApiModel(value = "com-bjsxt-dto-RegisteredItemDto")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true) //表示使用equals比较时考虑父类的属性
public class RegisteredItemDto extends BaseDto {
    // 挂号项ID
    @ApiModelProperty(value = "挂号项ID")
    private Long regItemId;
    // 挂号项目名称
    @ApiModelProperty(value = "挂号项目名称")
    @NotBlank(message = "挂号项目名称不能为空")
    private String regItemName;
    // 金额
    @ApiModelProperty(value = "金额")
    @NotNull(message = "金额不能为空")
    private BigDecimal regItemFee;
    // 状态(0正常 1停用)
    @NotBlank(message = "状态不能为空")
    @ApiModelProperty(value = "状态 0正常 1停用")
    private String status;
}
